class Tiger:
    type ='猫'

    def __init__(self,name,age):
        self.name=name
        self.age=age
    def run(self):
        print("四条腿狂奔")

    def __str__(self):
        return f"{self.name}的品种为{Tiger.type},年龄为{self.age}"

    def __del__(self):
        print("---对象被销毁时，执行该方法---")

ahuang = Tiger("阿黄",2)
print(ahuang)
bai = ahuang
hei = Tiger("小黑",2)
print(hei)
print(bai)